package code.lucamarrocco.rest;

import java.util.LinkedList;
import java.util.List;

public class RestfulResource {

	private List<RestfulMethod> methods = new LinkedList<RestfulMethod>();

	private String name;

	private RestfulTopic topic;

	public RestfulResource() {

	}

	public RestfulResource(String name) {
		this.name = name;
	}

	public void add(RestfulMethod method) {
		methods.add(method);
	}

	public List<RestfulMethod> getMethods() {
		return methods;
	}

	public String getName() {
		return name;
	}
	
	public void setTopic(RestfulTopic topic) {
		this.topic = topic;
	}
}
